<?php

namespace app\api\model;

use think\Model;

/**
 * banner模型
*/
class Banner extends Model
{
    protected $autoWriteTimestamp = true;

    public function getImageAttr($value): string
    {
        return full_url($value, false, config('buildadmin.default_avatar'));
    }
}